package com.ddx.dao;

import com.ddx.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKeyWithBLOBs(User record);

    int updateByPrimaryKey(User record);

    //@LZ_TAG_ID: METHOD BEGIN 自定义方法
    /**
     * 查询用户
     * @param record
     * @return
     */
    List<User> selectByRecord(User record);
    /**
     * 根据手机号码更新
     * @param user
     * @return
     */
    int updateByMobile(User user);

    int updatePoint(User user);

    List<User> search(@Param("content") String context,@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);
    //@LZ_TAG_ID: METHOD END
}